ARG ELK_VERSION
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION}
#COPY ./plugins/analysis-ik /usr/share/elasticsearch/plugins/analysis-ik

ARG ELK_VERSION
RUN yum install -y wget \
 && wget --no-check-certificate  https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v${ELK_VERSION}/elasticsearch-analysis-ik-${ELK_VERSION}.zip \
 && unzip elasticsearch-analysis-ik-${ELK_VERSION}.zip -d /usr/share/elasticsearch/plugins/analysis-ik

EXPOSE 9200 9300
